package com.huashi.dealer.modular.business.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huashi.dealer.commonEntity.Goods;
import com.huashi.dealer.modular.business.goods.param.GiftGoodsListParam;
import com.huashi.dealer.modular.business.goods.param.GiftGoodsSaveParam;
import com.huashi.dealer.modular.business.goods.vo.GiftGoodsVo;

public interface GiftGoodsService extends IService<Goods> {

    /**
     * 获取赠品商品分页列表
     */
    Page<GiftGoodsVo> getGiftGoodsList(GiftGoodsListParam param, Page<Goods> page);

    /**
     * 新增或编辑赠品商品
     */
    void saveOrUpdateGoods(GiftGoodsSaveParam param);

    /**
     * 删除赠品商品
     */
    void deleteGoods(Long goodsId);

    /**
     * 获取赠品商品详情
     */
    GiftGoodsVo getGoodsDetail(Long goodsId);

    /**
     * 更新商品状态
     */
    void updateGoodsStatus(Long goodsId, Integer status);

    /**
     * 复制商品
     */
    void copyGoods(Long goodsId);
}
